import {createAction} from 'redux-actions';
import actionTypes from '../action-types/userInfo';

// export const setUserInfo = createAction(
//   actionTypes.SET_USER_INFO,
//   (params) => {
//     return api({
//       method: 'GET',
//       url: '/device/getBySiteId',
//       params,
//     })
//       .then(res => res.data)
//       .catch(() => {});
//   },
// );

export const setUserInfo = createAction(
  actionTypes.SET_USER_INFO,
  info => info,
);
